use craftdig_datamodel::world::ChunkState;
use craftdig_math::*;

use super::errors::Error;

/// Simple in-memory interface to world generation, not capable of
/// persistently storing world generation state.
pub trait ChunkProvider: Sync + Send {
    fn provide_chunk(&self, coord: ChunkCoord) -> Result<ChunkState, Error>;
}
